package com.base.cn.platform.os.controller.statistics.ua;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.common.utils.result.ResultUtil;
import com.base.cn.platform.os.entity.statistics.ua.ZStatisticsActiveUserCount;
import com.base.cn.platform.os.service.statistics.ua.ZStatisticsActiveUserCountBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 用户活跃数据统计Controller
 *
 * @author s.li
 * @date 2019/04/19
 */
@RestController
@RequestMapping("/manage/statistics")
public class ZStatisticsActiveUserCountController extends BaseController {

    @Autowired
    private ZStatisticsActiveUserCountBiz zStatisticsActiveUserCountBiz;

    /**
     * 添加UA统计数据
     * @param statisticsActiveUserCountList
     */
    @RequestMapping("/createActiveUserCount")
    public Map<String,Object> createActiveUserCount(@RequestBody List<ZStatisticsActiveUserCount> statisticsActiveUserCountList){
        zStatisticsActiveUserCountBiz.createActiveUserCount(statisticsActiveUserCountList);
        return ResultUtil.SUCCESS();
    }
}
